package gxd26.basic;

public class J02_Math2Java {

	public static void main(String[] args) {
		
		// 4. 다음 수학식을 자바 표현식으로 바꿔보아라.
		int x = 2;
		int y = 3;
		int z = 5;
		int s0 = 6, v0=7, g = 8, t = 9;
		
		System.out.println("3x = "+(3*x));
		System.out.println("3x+y = "+(3*x+y));
		System.out.println("x+y/7 = "+((x+y)/7));
		System.out.println("3x+y/z+2 = "+((3*x+y)/(z+2)));
		System.out.println("s=s0+v0t+1/2gt^2 = "+(s0+(v0*t)+((1/2)*g*t*t)));
		

	}

}
